package com.sgb.jicai.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Objects;

/**
 * Time:2021/8/10
 * AUTHOR:F_Q
 * Description:
 */
public class AttrsListBean  implements Serializable {
    private String groupbugNo;//集采订单编号
    private String name;//名称
    private String no;//编号
    private String sku;//是否sku属性 0不是   1 是
    private String unit;//单位
    private String val;//页面传入的value
    private String value;//2.0暂时添加 解决值不显示的问题
    private List<GoodsDetailBean>  goodsDetailBeans;

    public List<GoodsDetailBean> getGoodsDetailBeans() {
        return goodsDetailBeans;
    }

    public void setGoodsDetailBeans(List<GoodsDetailBean> goodsDetailBeans) {
        this.goodsDetailBeans = goodsDetailBeans;
    }

    public String getGroupbugNo() {
        return groupbugNo;
    }

    public void setGroupbugNo(String groupbugNo) {
        this.groupbugNo = groupbugNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getVal() {
        return val;
    }

    public void setVal(String val) {
        this.val = val;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        AttrsListBean that = (AttrsListBean) o;
        return Objects.equals(name, that.name) &&
                Objects.equals(val, that.val);
    }

    @Override
    public int hashCode() {
        return Objects.hash(name, val);
    }

    @Override
    public String toString() {
        return "{" +
                "groupbugNo='" + groupbugNo + '\'' +
                ", name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", sku='" + sku + '\'' +
                ", unit='" + unit + '\'' +
                ", val='" + val + '\'' +
                ", value='" + value + '\'' +
                '}';
    }
}
